package com.ykt.common.config;

/**
 * 通用配置项
 *
 * @author long.hua
 * @version 1.0.0
 * @since 2015-12-22 23:04
 */
public class CommonConfigs {

    /**访问日志*/
    public final static String API_ACCESS = "api.access";

    /**上传文件所属业务类型*/
    public static enum UploadBizType {
        /**商铺市场文件*/
        SHOP("shop/"),

        /**图片文件*/
        HEAD("user/"),

        /**商品文件*/
        GOODS("goods/"),

        /**其他文件*/
        OTHER("other/");

        private String dir;
        private UploadBizType(String dir){
            this.dir = dir;
        }
        public String getDir(){
            return this.dir;
        }
    } ;

    /**文件归类*/
    public static enum UploadFileType {
        /**视频文件*/
        VIDEO("video/"),
        /**图片文件*/
        IMAGE("image/"),
        /**常规文档*/
        NORMAL("normal/"),
        /**压缩文件*/
        COMPACT("compact/");

        private String dir;
        private UploadFileType(String dir){
            this.dir = dir;
        }
        public String getDir(){
            return this.dir;
        }
    } ;


    public static void main(String[] args) {
        UploadFileType fy = UploadFileType.valueOf("VIDEO");
        System.out.println(fy.getDir());
    }



}
